#include "s3c2440_soc.h"

void delay(volatile int cnt)
{
	while(cnt--);
}

int main()
{
	/* 先将对应的位清零 */
	GPFCON &= ~((3<<8) | (3<<10) |(3<<12));

	/* 再将对应的位标记为输出引脚 */
	GPFCON |= ((1<<8) | (1<<10) | (1<<12));


	int val = 0;
	/* 循环点亮 */
	while(1)
	{
		GPFDAT &= ~(7<<4);
		GPFDAT |= (val<<4);

		delay(100000);

		val ++;
		if (val == 8) {
			val = 0;
		}

	}
	return 0;
}
